<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title></title>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/static/admin/css/login.css"/>
</head>
<body class="layui-layout-body">

<div class="m-login-bg">
    <div class="m-login">
        <h3>后台系统登录</h3>
        <div class="m-login-warp">
            <form class="layui-form" method="get" action="/userlogin">
                <div class="layui-form-item">
                    <input type="text" name="userName" required lay-verify="required" placeholder="用户名"
                           autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <input type="password" name="userPassword" required lay-verify="required" placeholder="密码"
                           autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item m-login-btn">
                    <div class="layui-inline">
                        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="loginForm">登录</button>
                    </div>
                    <div class="layui-inline">
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                    <div class="layui-inline">
                        <button id="sub" type="button" class="layui-btn layui-btn-primary">test</button>
                    </div>
                </div>
            </form>
        </div>

    </div>
</div>

<script src="/static/admin/layui/layui.js" type="text/javascript" charset="UTF-8"></script>
<script src="../static/admin/js/jquery-3.4.1.js"></script>

<script>

    $("#sub").click(function () {
        $.get("/admin/user/query", {}, function (data) {
            console.log(data)
        })
    })

</script>

</body>
</html>